const fs = require("fs");
const {allToAst} = require('./rule/ASTtoDump');

let path = "baidu.js";


let text = fs.readFileSync(path, {
    encoding: 'utf-8'
});
let astText = allToAst(text.toString());

console.log(astText)

fs.writeFile('./ast/'+path,astText,(err)=>{})




